package com.yc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yc.entity.Comment2;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * InnoDB free: 4096 kB Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2022-06-12
 */
public interface Comment2Mapper extends BaseMapper<Comment2> {
    @Select("select * from comment2 ORDER BY time DESC;")
         public List<Comment2>   queryComment2();

   @Insert("INSERT into comment2(uid,message,time)  " +
           "VALUES(#{uid},#{message},NOW());")
    public  Integer    insert(Integer uid,String message);


}
